//
//  ServiceGuidanceCell.m
//  JinMaJiaDemo
//
//  Created by GripMeMory on 15/12/29.
//  Copyright © 2015年 GripMeMory. All rights reserved.
//

#import "ServiceGuidanceCell.h"
#import "ServiceGuidanceModel.h"

@implementation ServiceGuidanceCell

{
    UILabel *_titleLabel;
    UIImageView *_indentifierImageView;
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _titleLabel = [[UILabel alloc] init];
        _indentifierImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:_titleLabel];
        [self.contentView addSubview:_indentifierImageView];
    }
    return self;
}

- (void)layoutSubviews{
    _titleLabel.frame = CGRectMake(40, 0, 300, self.height);
    _indentifierImageView.frame = CGRectMake(self.right - 30, 15, 10, self.height - 30);
    _indentifierImageView.image  = [UIImage imageNamed:@"进入"];
}

- (void)configureCellWithModel:(NSString *)model{
    _titleLabel.text = model;
}

@end
